using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using CMS.BIZ;

namespace CMS.Web.UI.UserControls
{
    public class ContentView : UserControl
    {

        private BizContent content;

        protected Literal lContent;

        public ContentView()
        {
            base.Init += new EventHandler(ContentView_Init);
        }

        public BizContent Content
        {
            get { return content; }
            set { content = value; }
        }

        void ContentView_Init(object sender, EventArgs e)
        {
            if (content!=null) lContent.Text = content.ContentText;
        }

    }
}
